Optimal. Leaf size=80 \[ \frac {\sqrt {1-\frac {a \sin ^2(e+f x)}{a+b}} F\left (\sin ^{-1}(\sin (e+f x))|\frac {a}{a+b}\right )}{f \sqrt {\cos ^2(e+f x)} \sqrt {\sec ^2(e+f x) \left (-a \sin ^2(e+f x)+a+b\right )}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.27, antiderivative size = 103, normalized size of antiderivative = 1.29, number of steps used = 5, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {4148, 6722, 1974, 421, 419} \[ \frac {\sqrt {1-\frac {a \sin ^2(e+f x)}{a+b}} \sqrt {a \cos ^2(e+f x)+b} F\left (\sin ^{-1}(\sin (e+f x))|\frac {a}{a+b}\right )}{f \sqrt {\cos ^2(e+f x)} \sqrt {-a \sin ^2(e+f x)+a+b} \sqrt {a+b \sec ^2(e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 419
Rule 421
Rule 1974
Rule 4148
Rule 6722
Rubi steps
\begin {align*} \int \frac {\sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)}} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {1}{\left (1-x^2\right ) \sqrt {a+\frac {b}{1-x^2}}} \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac {\sqrt {b+a \cos ^2(e+f x)} \operatorname {Subst}\left (\int \frac {1}{\sqrt {1-x^2} \sqrt {b+a \left (1-x^2\right )}} \, dx,x,\sin (e+f x)\right )}{f \sqrt {\cos ^2(e+f x)} \sqrt {a+b \sec ^2(e+f x)}}\\ &=\frac {\sqrt {b+a \cos ^2(e+f x)} \operatorname {Subst}\left (\int \frac {1}{\sqrt {1-x^2} \sqrt {a+b-a x^2}} \, dx,x,\sin (e+f x)\right )}{f \sqrt {\cos ^2(e+f x)} \sqrt {a+b \sec ^2(e+f x)}}\\ &=\frac {\left (\sqrt {b+a \cos ^2(e+f x)} \sqrt {1-\frac {a \sin ^2(e+f x)}{a+b}}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {1-x^2} \sqrt {1-\frac {a x^2}{a+b}}} \, dx,x,\sin (e+f x)\right )}{f \sqrt {\cos ^2(e+f x)} \sqrt {a+b \sec ^2(e+f x)} \sqrt {a+b-a \sin ^2(e+f x)}}\\ &=\frac {\sqrt {b+a \cos ^2(e+f x)} F\left (\sin ^{-1}(\sin (e+f x))|\frac {a}{a+b}\right ) \sqrt {1-\frac {a \sin ^2(e+f x)}{a+b}}}{f \sqrt {\cos ^2(e+f x)} \sqrt {a+b \sec ^2(e+f x)} \sqrt {a+b-a \sin ^2(e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.18, size = 69, normalized size = 0.86 \[ \frac {\sec (e+f x) \sqrt {\frac {a \cos (2 (e+f x))+a+2 b}{a+b}} F\left (e+f x\left |\frac {a}{a+b}\right .\right )}{\sqrt {2} f \sqrt {a+b \sec ^2(e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.49, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\sec \left (f x + e\right )}{\sqrt {b \sec \left (f x + e\right )^{2} + a}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec \left (f x + e\right )}{\sqrt {b \sec \left (f x + e\right )^{2} + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 1.55, size = 269, normalized size = 3.36 \[ \frac {\left (\sin ^{2}\left (f x +e \right )\right ) \sqrt {2}\, \sqrt {\frac {i \sqrt {a}\, \sqrt {b}\, \cos \left (f x +e \right )-i \sqrt {a}\, \sqrt {b}+a \cos \left (f x +e \right )+b}{\left (1+\cos \left (f x +e \right )\right ) \left (a +b \right )}}\, \sqrt {-\frac {2 \left (i \sqrt {a}\, \sqrt {b}\, \cos \left (f x +e \right )-i \sqrt {a}\, \sqrt {b}-a \cos \left (f x +e \right )-b \right )}{\left (1+\cos \left (f x +e \right )\right ) \left (a +b \right )}}\, \EllipticF \left (\frac {\left (-1+\cos \left (f x +e \right )\right ) \sqrt {\frac {2 i \sqrt {a}\, \sqrt {b}+a -b}{a +b}}}{\sin \left (f x +e \right )}, \sqrt {-\frac {4 i a^{\frac {3}{2}} \sqrt {b}-4 i \sqrt {a}\, b^{\frac {3}{2}}-a^{2}+6 a b -b^{2}}{\left (a +b \right )^{2}}}\right )}{f \sqrt {\frac {b +a \left (\cos ^{2}\left (f x +e \right )\right )}{\cos \left (f x +e \right )^{2}}}\, \cos \left (f x +e \right ) \left (-1+\cos \left (f x +e \right )\right ) \sqrt {\frac {2 i \sqrt {a}\, \sqrt {b}+a -b}{a +b}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec \left (f x + e\right )}{\sqrt {b \sec \left (f x + e\right )^{2} + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {1}{\cos \left (e+f\,x\right )\,\sqrt {a+\frac {b}{{\cos \left (e+f\,x\right )}^2}}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec {\left (e + f x \right )}}{\sqrt {a + b \sec ^{2}{\left (e + f x \right )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________